package com.jamila.scancode.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author JAMILA
 * @since 2024-03-30 01:42:05
 */
@Getter
@Setter
@TableName("basic_info")
@ApiModel(value = "BasicInfo对象", description = "")
public class BasicInfo {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("手机号码")
    @TableField("tel")
    private String tel;

    @ApiModelProperty("头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("身份证号")
    @TableField("card_number")
    private String cardNumber;

    @ApiModelProperty("身份证地址")
    @TableField("card_address")
    private String cardAddress;

    @ApiModelProperty("身份证开始日期")
    @TableField("card_start")
    private LocalDate cardStart;

    @ApiModelProperty("身份证结束日期")
    @TableField("card_end")
    private LocalDate cardEnd;

    @ApiModelProperty("身份证是否有效(0-无效，1-有效；默认1)")
    @TableField("card_enabled")
    private Integer cardEnabled;

    @ApiModelProperty("出生日期")
    @TableField("birthday")
    private LocalDate birthday;

    @ApiModelProperty("籍贯")
    @TableField("native_place")
    private String nativePlace;

    @ApiModelProperty("婚姻状况(0-未婚，1-已婚，2-未知；默认0)")
    @TableField("marital_status")
    private Integer maritalStatus;

    @ApiModelProperty("身高(cm)")
    @TableField("height")
    private Double height;

    @ApiModelProperty("体重(kg)")
    @TableField("weight")
    private Double weight;

    @ApiModelProperty("民族")
    @TableField("nation")
    private String nation;

    @ApiModelProperty("政治面貌")
    @TableField("political_outlook")
    private String politicalOutlook;

    @ApiModelProperty("性格特征")
    @TableField("characteristics")
    private String characteristics;

    @ApiModelProperty("特长")
    @TableField("speciality")
    private String speciality;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("逻辑删除(0-未删除，1-删除；默认0)")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;
}
